package ch07;

class _03_TVCR extends Tv {
	VCR vcr = new VCR();
	int counter = vcr.counter;

	void play() {
		vcr.play();
	}

	void stop() {
		vcr.stop();
   }

	void rew() {
		vcr.rew();
   }

	void ff() {
		vcr.ff();	
   }
}

class Tv extends Object{
	boolean power;
	int channel;

	void power() { power = !power; }
	void channelUp() { ++channel; }
	void channelDown() { --channel; }
}

class VCR {
	boolean power;
    int counter = 0;
	void power() { 	power = !power; }
	void play() { }
	void stop() { }
	void rew() { }
	void ff() { }
}

